# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
    ['gui.py'],
    pathex=[],
    binaries=[],
    datas=[
        ('views/*', 'views'),      # 包含整个 views 目录
        ('views/__init__.py', 'views'),  # 包含 views 目录的 __init__.py 文件
        ('utils/*', 'utils'),      # 包含整个 utils 目录
        ('utils/__init__.py', 'utils'),  # 包含 utils 目录的 __init__.py 文件
    ],
    hiddenimports=[
        'views.home_page',        # 显式声明隐藏导入
        'views.settings_page',
        'views.common',
        'utils.logger',
        'utils.config_file',
        'utils.Remind',
        'utils.config',
        'utils.start',
    ],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='gui',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=True,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
    icon=['D:\\MyFile\\Python_Code\\Flet_Test\\Source\\icon\\Replace_icon.ico'],
)
